package mythread.demo001;

import java.util.Random;

public class MyThread16_2A extends Thread {

    @Override
    public void run() {
        long Cnt =0;
       long ss = System.currentTimeMillis();
        for (int i = 0; i <10 ; i++) {
            for (int j = 0; j < 50000; j++) {
                Random random = new Random();
                random.nextInt();
                Cnt = Cnt +i;
            }
        }

       long tt = System.currentTimeMillis();
        System.out.println("AAA time= "+(tt-ss));
    }
}
